// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * PaypalPaymentTransaction generated by hbm2java
 */
@Entity
@Table(name = "paypal_payment_transaction", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = "txn_id"))
public class PaypalPaymentTransaction implements java.io.Serializable {

	private Integer transactionId;
	private String txnId;
	private byte[] additionalInformation;
	private Date createdAt;

	public PaypalPaymentTransaction() {
	}

	public PaypalPaymentTransaction(String txnId, byte[] additionalInformation,
			Date createdAt) {
		this.txnId = txnId;
		this.additionalInformation = additionalInformation;
		this.createdAt = createdAt;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "transaction_id", unique = true, nullable = false)
	public Integer getTransactionId() {
		return this.transactionId;
	}

	public void setTransactionId(Integer transactionId) {
		this.transactionId = transactionId;
	}

	@Column(name = "txn_id", unique = true, length = 100)
	public String getTxnId() {
		return this.txnId;
	}

	public void setTxnId(String txnId) {
		this.txnId = txnId;
	}

	@Column(name = "additional_information")
	public byte[] getAdditionalInformation() {
		return this.additionalInformation;
	}

	public void setAdditionalInformation(byte[] additionalInformation) {
		this.additionalInformation = additionalInformation;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

}
